import { Component, OnInit } from '@angular/core';
import {ActivatedRoute, Router} from '@angular/router';

@Component({
  selector: 'app-type-home',
  templateUrl: './type-home.component.html',
  styleUrls: ['./type-home.component.css']
})
export class TypeHomeComponent implements OnInit {
  userId: string = this.routerInfo.snapshot.queryParams['userId'];
  constructor(private routerInfo: ActivatedRoute,
  private router: Router) {
  }

  ngOnInit() {
  }

addType() {
  this.router.navigate(['camType', 'new'], {queryParams: {userId: this.userId}});
}

}
